package com.adong.jpa.service;

import com.adong.jpa.dao.PersonDao;
import com.adong.jpa.entities.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author adong
 */
@Service
public class PersonService {
    @Autowired
    private PersonDao personDao;

    @Transactional
    public void savePerson(Person person) {
        personDao.save(person);
    }
}
